package com.jdrx.ocp.beans.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Set;

import lombok.Data;

/**
 * @author huangxg
 */
@Data
public class UserPO implements Serializable {
	private static final long serialVersionUID = -7851611520624016555L;

	private Long id;

	private Long deptId;

	private String name;

	private String pwd;
	
	private Integer roleLevel;
	
	private String stationIds;
	
	private String stations;

	private Long createBy;

	private LocalDateTime createAt;

	private Long updateBy;

	private LocalDateTime updateAt;

	private Integer delFlag;
	
	private Integer loginFlag;

	private Integer isAdmin;

	private Integer isSystem;

	private String remark;

	private Short status;
	/**
	 * 用户所属的角色ids,多角色使用','分割
	 */
	private String roleIds;
	/**
	 * 对应用户角色实体list
	 */
	private List<RolePO> roles;
	/**
	 * 用户资源的id
	 */
	private Set<String> resourceSet;

	/**
	 * 用户手机号
	 */
	private String phone;
	/**
	 * 用户邮箱
	 */
	private String email;
	/**
	 * 用户名称
	 */
	private String realName;

	/**
	 * 登录IP
	 */
	private String lastLoginIp;
	/**
	 * 登录时间
	 */
	private Date lastLoginTime;
	/**
	 * 登录设备
	 */
	private Integer lastLoginDevice;
	/**
	 * 密码修改日期
	 */
	private Date lastChangePwd;
	/**
	 * 明文密钥
	 */
	private String privateKey;

	/**微信端登录使用，与用户手机号一一对应*/
	private String openId;
	/**用户所属公司*/
	private String company;
	/**
	 * 用户所属公司(dept表)
	 */
	private Integer companyId;
	/**分类ID集合*/
	private String classIds;
	/**关注卡片*/
	private String followCards;
	/**直播间标识符*/
	private String studioIdentify;
}